package com.ag.bean;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * TbMedicineConfirm entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "TB_MedicineConfirm", schema = "dbo", catalog = "AGDB")
public class TbMedicineConfirm implements java.io.Serializable {

	private static final long serialVersionUID = 1L;
	// Fields

	private String TId;
	private TbTask tbTask;
	private TbQuantityUnit tbQuantityUnit;
	private String mcName;
	private String mcCnum;
	private String mcMnum;
	private String mcDnum;
	private String mcWnum;
	private String a;
	private String b;
	private String c;
	private Date mcTime;

	// Constructors

	/** default constructor */
	public TbMedicineConfirm() {
	}

	/** minimal constructor */
	public TbMedicineConfirm(String TId, TbTask tbTask) {
		this.TId = TId;
		this.tbTask = tbTask;
	}

	/** full constructor */
	public TbMedicineConfirm(String TId, TbTask tbTask,
			TbQuantityUnit tbQuantityUnit, String mcName, String mcCnum,
			String mcMnum, String mcDnum, String mcWnum, String a, String b,
			String c, Date mcTime) {
		this.TId = TId;
		this.tbTask = tbTask;
		this.tbQuantityUnit = tbQuantityUnit;
		this.mcName = mcName;
		this.mcCnum = mcCnum;
		this.mcMnum = mcMnum;
		this.mcDnum = mcDnum;
		this.mcWnum = mcWnum;
		this.a = a;
		this.b = b;
		this.c = c;
		this.mcTime = mcTime;
	}

	// Property accessors
	@Id
	@Column(name = "T_ID", unique = true, nullable = false, length = 10)
	public String getTId() {
		return this.TId;
	}

	public void setTId(String TId) {
		this.TId = TId;
	}

	@OneToOne(fetch = FetchType.LAZY)
	@PrimaryKeyJoinColumn
	public TbTask getTbTask() {
		return this.tbTask;
	}

	public void setTbTask(TbTask tbTask) {
		this.tbTask = tbTask;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "QU_Id")
	public TbQuantityUnit getTbQuantityUnit() {
		return this.tbQuantityUnit;
	}

	public void setTbQuantityUnit(TbQuantityUnit tbQuantityUnit) {
		this.tbQuantityUnit = tbQuantityUnit;
	}

	@Column(name = "MC_Name", length = 100)
	public String getMcName() {
		return this.mcName;
	}

	public void setMcName(String mcName) {
		this.mcName = mcName;
	}

	@Column(name = "MC_Cnum", length = 10)
	public String getMcCnum() {
		return this.mcCnum;
	}

	public void setMcCnum(String mcCnum) {
		this.mcCnum = mcCnum;
	}

	@Column(name = "MC_Mnum", length = 10)
	public String getMcMnum() {
		return this.mcMnum;
	}

	public void setMcMnum(String mcMnum) {
		this.mcMnum = mcMnum;
	}

	@Column(name = "MC_Dnum", length = 10)
	public String getMcDnum() {
		return this.mcDnum;
	}

	public void setMcDnum(String mcDnum) {
		this.mcDnum = mcDnum;
	}

	@Column(name = "MC_Wnum", length = 10)
	public String getMcWnum() {
		return this.mcWnum;
	}

	public void setMcWnum(String mcWnum) {
		this.mcWnum = mcWnum;
	}

	@Column(name = "A", length = 60)
	public String getA() {
		return this.a;
	}

	public void setA(String a) {
		this.a = a;
	}

	@Column(name = "B", length = 60)
	public String getB() {
		return this.b;
	}

	public void setB(String b) {
		this.b = b;
	}

	@Column(name = "C", length = 60)
	public String getC() {
		return this.c;
	}

	public void setC(String c) {
		this.c = c;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "MC_Time", length = 23)
	public Date getMcTime() {
		return this.mcTime;
	}

	public void setMcTime(Date mcTime) {
		this.mcTime = mcTime;
	}

}